import Simplification.Simplification;
import Syntaxe.Fraction;
import Syntaxe.Matrice;
import Syntaxe.Simplexe;
import Syntaxe.Vecteur;

public class test {

	public static void main(String[] args) {
		//page61 ChenBaolin
		Fraction[][] matrice= new Fraction[3][4];
		matrice[0][0] = new Fraction(-1);
		matrice[0][1] = new Fraction(-1);
		matrice[0][2] = new Fraction(2);
		matrice[0][3] = new Fraction(-10);
		matrice[1][0] = new Fraction(-2);
		matrice[1][1] = new Fraction(1);
		matrice[1][2] = new Fraction(-4);
		matrice[1][3] = new Fraction(-8);
		matrice[2][0] = new Fraction(1);
		matrice[2][1] = new Fraction(-2);
		matrice[2][2] = new Fraction(4);
		matrice[2][3] = new Fraction(-4);
		
		Matrice m = new Matrice(matrice);
		m.subLigne(1, 2).AfficheMatrice();
		m.AfficheMatrice();
		
		Matrice.zeros(3).AfficheMatrice();
		
		Fraction[] f= new Fraction[3];
		f[0]=new Fraction(1);
		f[1]=new Fraction(-2);
		f[2]=new Fraction(0);
		
		Vecteur.multiVec(f, m.colonne(0)).print();
		
	}

}
